package hello

import (
	"context"
	"go_end/api/hello/v1"
	"go_end/internal/dao"
)

func (c *ControllerV1) Hello(ctx context.Context, req *v1.HelloReq) (res *v1.HelloRes, err error) {
	one, err := dao.SysConfig.Ctx(ctx).Where("key='sure_bet'").One()
	if err != nil {
		return nil, err
	}
	res = new(v1.HelloRes)
	res.Record = one
	return res, nil
}
